package com.zyx.crawlerdemo.jsoup.jsoupconnect;

import java.io.IOException;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

/**
 * @author Yaxi.Zhang
 * @since 2021/8/11 13:32
 * desc: Jsoup连接案例1
 */
public class JsoupConnectUrl1 {

	public static void main(String[] args) throws IOException {
		// 创建连接
		Connection connect = Jsoup.connect("https://searchcustomerexperience.techtarget.com/info/news");
		// 请求网页
		Document document = connect.get();
		// 输出HTML
		System.out.println(document.html());
	}

}
